<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class WxUser extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wx_user',function(Blueprint $table){
            $table->engine="InnoDB";
            $table->increments('id');
            $table->char('openid',50);
            $table->text("nickname");
            $table->string("username");
            $table->char('phone',12);
            $table->tinyInteger('sex')->default(0);
            $table->text("headimgurl");
            $table->char('city',25);
            $table->char('province',25);
            $table->char('country',25);
            $table->integer('addtime');
            $table->rememberToken();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
         Schema::drop('wx_user');
    }
}
